﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminLayout.master" AutoEventWireup="true" CodeFile="AdminProductsIphoneAddNew.aspx.cs" Inherits="Admin_AdminProductsIphoneAddNew" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style1
        {
            width: 70%;
        }
        .style2
        {
            width: 83px;
        }
        .style3
        {
            width: 83px;
            height: 20px;
        }
        .style4
        {
            height: 20px;
        }
        .style5
        {
            width: 217px;
        }
        .style6
        {
            height: 20px;
            width: 217px;
        }
        .style7
        {
            width: 85%;
        }
        .style8
        {
            width: 87px;
        }
        .style9
        {
            width: 245px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <form id="form1" runat="server">
    <h2>
        Admin Iphone Manager<br />
        Add New Iphone</h2>
    <p>
        &nbsp;</p>
    <p>
        <asp:Label ID="lblStatus" runat="server" ForeColor="Red"></asp:Label>
    </p>
    <p>
        &nbsp;</p>
    <table align="center" class="style1">
        <tr>
            <td class="style2">
                ID</td>
            <td align="left" class="style5">
                <asp:TextBox ID="txtIphoneID" runat="server" Width="200px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtIphoneID" ErrorMessage="Iphone ID Cannot left blank" 
                    ForeColor="Red" ValidationGroup="New Iphone"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style2">
                Name</td>
            <td align="left" class="style5">
                <asp:TextBox ID="txtIphoneName" runat="server" Width="200px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtIphoneName" ErrorMessage="Iphone Name Cannot left blank" 
                    ForeColor="Red" ValidationGroup="New Iphone"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style2">
                Type</td>
            <td align="left" class="style5">
                <asp:TextBox ID="txtIphoneType" runat="server" Enabled="False" Width="200px">iPhone</asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                Price</td>
            <td align="left" class="style5">
                <asp:TextBox ID="txtIphonePrice" runat="server" Width="200px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="txtIphonePrice" ErrorMessage="Price Cannot left blank" 
                    ForeColor="Red" ValidationGroup="New Iphone"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style2">
                Image</td>
            <td align="left" class="style5">
                <asp:FileUpload ID="fileUploadeIphone" runat="server" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td class="style5">
                <asp:Image ID="imageIphone" runat="server" Height="200px" Width="250px" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style3">
            </td>
            <td class="style6">
                <asp:Button ID="btnAddNewIphone" runat="server" onclick="btnAddNewIphone_Click" 
                    Text="Add New" ValidationGroup="New Iphone" />
            </td>
            <td class="style4">
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td class="style5">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <h2>
        Add New iPhone Details</h2>
    <p>
        &nbsp;</p>
    <p>
        <asp:Label ID="lblStatus1" runat="server" ForeColor="Red"></asp:Label>
    </p>
    <p>
        &nbsp;</p>
    <table class="style7">
        <tr>
            <td colspan="2">
                <asp:DropDownList ID="dropDownIphoneDetails" runat="server" Width="200px">
                </asp:DropDownList>
            </td>
            <td>
                <asp:Button ID="btnSeletedDropDown" runat="server" 
                    onclick="btnSeletedDropDown_Click" Text="Select" 
                    ValidationGroup="SelectDetails" />
            </td>
        </tr>
        <tr>
            <td class="style8">
                Details ID</td>
            <td class="style9">
                <asp:TextBox ID="txtDetailsID" runat="server" Enabled="False" Width="200px"></asp:TextBox>
            </td>
            <td rowspan="3">
                <asp:Image ID="imageIphoneDetails" runat="server" Height="200px" 
                    Width="250px" />
            </td>
        </tr>
        <tr>
            <td class="style8">
                Details Image</td>
            <td class="style9">
                <asp:FileUpload ID="fileUploadIphoneDetails" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="style8">
                Details Text</td>
            <td class="style9">
                <asp:TextBox ID="txtDetailsText" runat="server" Width="200px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style8">
                &nbsp;</td>
            <td class="style9">
                <asp:Button ID="btnAddNewIphoneDetails" runat="server" Enabled="False" 
                    onclick="Button3_Click" Text="Add New" ValidationGroup="Add New Details" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style8">
                &nbsp;</td>
            <td class="style9">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <p>
        &nbsp;</p>
    </form>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
</asp:Content>

